package com.ysd.lis.mapper.sys;

import com.ysd.lis.entity.SysOrganization;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.ysd.lis.vo.OrgDeptVo;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * <p>
 * cold_chain.t_organization Mapper 接口
 * </p>
 *
 * @author Peng
 * @since 2021-10-08
 */
public interface SysOrganizationMapper extends BaseMapper<SysOrganization> {

    List<Map<String, Object>> findOrgAllList();

    List<Map<String, Object>> findOrgChildList(String orgId);

    List<Map<String, Object>> findOrgNoParentList(@Param("orgId") String orgId,@Param("type") Integer type);
    List<SysOrganization> getOrgByPid(String id);

    List<OrgDeptVo> getOrgDeptTreeByOrgId(String orgId);
}
